Skip to content

feat(dsh-pet): add blue-throated-bee-eater sprite2d pet - #1402

Merged
zhu1090093659 merged 7 commits into
zhu1090093659:devfrom
yezi4271:feat/blue-throated-bee-eater-pet
Sep 7, 2026
Merged

zhu1090093659 merged 7 commits into
zhu1090093659:devfrom
yezi4271:feat/blue-throated-bee-eater-pet

Conversation

@yezi4271

@yezi4271 yezi4271 commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

摘要(Summary)

新增内置宠物「蓝喉蜂虎」(id blue-throated-bee-eater,接线选择器名「蓝喉蜂虎」):与已合入的蓝喉蜂虎皮肤同主题的 sprite2d 动漫伙伴——湛蓝喉部、青绿体羽、栗红羽冠、蓝色尾羽流,配色全部取自皮肤 token。素材为仓库原创扁平插画(Apache-2.0),由归档生成器程序化绘制;作为内置宠物随 dsh-pet 打包(CONTRIBUTING「随 PR 收录为内置宠物」),同时进入创意工坊目录供按需安装。

涉及包(Affected Packages)

  • 宠物 packages/dsh-pet
  • 其他(说明):市场构建产物 market/dist(pets 清单 + 资产树)

PR 类别(PR Category)

  • 插件功能(任务看板 / Git 图谱 / 右侧面板 / 远程 Web UI / SSH / 宠物 / 设置 / 聚合包)

PR 类型(PR Type)

  • 新宠物收录(内容贡献,欢迎直接提交,无需先提 issue)

最新代码确认(Latest Codebase Confirmation)

  • 我已基于最新 dev 分支开发,或在提交前已 rebase / 合并最新 dev。

同步命令:

git fetch origin dev && git checkout -b feat/blue-throated-bee-eater-pet origin/dev

(分支基点 origin/dev = 9d50d8b,本地提交 2 个:4ab07ee7 宠物主体、19e5795c 证据归档)

测试证据与上游同步(Test Evidence & Upstream Sync)

  • 我提供了自己本地测试的证据(执行的命令 / 测试结果 / 运行截图)。
  • 我已同步上游最新 dev 分支(git fetch origin && git rebase origin/dev),并附上同步后重新测试通过的证据(视觉 / 用户可见变更附截图)。

视觉修复要求(Visual Fix Requirements)

  • 我提供了修复完成后的截图(完成态或修复前后对比)。
  • 修复使用的 AI 模型支持图像输入(多模态模型)。

AI 编码披露(AI Coding Disclosure)

  • 完全 AI 编码:全部编程改动由 AI 产出,并由贡献者接受 / 审查。
  • 部分 AI 辅助:AI 帮助编写或修改了部分编程改动。
  • 未使用 AI 编码辅助。

使用的 AI 模型:DeepSeek(deepseek-v4-flash-vision-exp,多模态复核素材)

使用的编码 Agent 工具:DeepSeek Harness

(说明:素材绘制脚本、pet.json、测试断言、README 与归档由 AI Agent 生成并经贡献者审查;提交身份为贡献者本人。)

仓库规范检查(Repo Rules)

  • 未修改 DSH 官方源码,仅基于官方 NPM SDK(@deepseek-ai/*)开发。
  • 未新增指向 DSH 源码 checkout 的 tsconfig extends / paths / references。
  • 新增包目录以 dsh- 前缀命名(如 packages/dsh-xxx)。 ——(本次为既有包内资产,不适用)
  • 所有新增 / 修改文件不含任何 emoji 字符。
  • 改动包 README 时同步维护中英双语三件套(README.md / README.zh.md / README.i18n.yaml)并运行 pnpm docs:check。

贡献者版权声明(Contributor Copyright)

素材为本仓库原创(author dsh-web,Apache-2.0),无第三方素材;无需在版权表追加第三方行。

新宠物收录(New Pet)

  • 按宠物契约新增 packages/dsh-pet/assets/blue-throated-bee-eater/:pet.json 使用 v2 manifest(petManifestVersion / id 小写 kebab / displayName / license / renderer / sprite2d{} / tracks / sequences / remarks,无未知顶层键),资产路径全部为安全相对路径。
  • 图集为 8 列 × 9 行(1536×1872,单元格 192×208),行序固定(0 idle / 1 running-right / 2 running-left / 3 waving / 4 jumping / 5 failed / 6 waiting / 7 running / 8 review),帧数 [6, 8, 8, 4, 5, 8, 6, 6, 6],未用格子全透明;node scripts/dsh-pet validate <dir> 通过(零诊断)。
  • 在 packages/dsh-pet/src/registry.test.ts 增加该 manifest 的归一化断言;pnpm --filter @linxin666/dsh-pet build / test 与 pnpm typecheck 通过。
  • 同步维护 dsh-pet README 中英三件套(README.md / README.zh.md / README.i18n.yaml)并重录配对(pnpm docs:write-pair dsh-pet)。
  • README 动画预览与「许可证 / 版权」说明齐全;PR 描述附宠物实测截图(见下方用户可见变更证据:dock 动画三帧 + 设置页 + 注册表 JSON;选择器下拉为同一 /api/pet/pets 数据,本机运行的原版本宿主较旧、未暴露该插件的设置命名空间表单,故以 pet.json 直切 + 注册表截图代替,当前 dev 栈实例上选择器可直接展示)。

本地验证(Local Validation)

执行的命令:

node scripts/dsh-pet validate packages/dsh-pet/assets/blue-throated-bee-eater
pnpm --filter @linxin666/dsh-pet build
pnpm --filter @linxin666/dsh-pet test
pnpm typecheck
node scripts/market-build && node scripts/market-build --check
pnpm test:scripts && pnpm docs:check && pnpm i18n:check
pnpm test   # 全量

结果摘要:

  • dsh-pet validate:PASS(valid: blue-throated-bee-eater (renderer sprite2d),零诊断)
  • dsh-pet build / test:PASS(471 tests,registry 测试含新条目断言:id、displayName 蓝喉蜂虎、atlasRows 9 / columns 8 / rows [6,8,8,4,5,8,6,6,6]、图集文件存在)
  • pnpm typecheck:PASS
  • market-build:wrote … (29 skins, 6 pets, 54 plugins);market-build --check:PASS(dist up to date)
  • pnpm test:scripts:PASS(0 fail);docs:check:PASS;i18n:check:PASS
  • 全量 pnpm test:仅 dsh-remote-web-ui tests/remote-api.spec.ts > returns a fixed 502 message instead of the upstream error text 一处 5s 超时失败;该失败在干净 origin/dev 基线(stash 本改动后重跑)同样复现,属既有环境相关失败,与本 PR 无关(其余 347/348 通过;dsh-pet 全部通过)

用户可见变更证据(Local Feature Evidence)

dock animation
panel

  • 真实 DSH web 实例(临时 DSH home 复制 + Playwright 无头 Chromium)——dock 三帧动画(挥翅 → 回头 → 呼吸,600ms 间隔),背景正是蓝喉蜂虎皮肤照片:
    • docs/archive/blue-throated-bee-eater-pet/gui-pet-animation-strip.png(三帧拼图)
    • docs/archive/blue-throated-bee-eater-pet/gui-pet-dock-a.png(整屏)
    • docs/archive/blue-throated-bee-eater-pet/gui-pet-dock-b.png / gui-pet-dock-c.png
  • 设置页宠物卡:docs/archive/blue-throated-bee-eater-pet/gui-pet-settings.png(本机宿主版本提示表单不可用,见上)
  • 注册表条目 JSON:docs/archive/blue-throated-bee-eater-pet/pets-api.json(/api/pet/pets:ouo-neko / whale-girl / whale-girl-refined / blue-throated-bee-eater | 蓝喉蜂虎)
  • 素材全帧 contact sheet / 关键帧放大:docs/archive/blue-throated-bee-eater-pet/contact-sheet.png、zoom-sheet.png、strip-*.png、zoom-*.png
  • 验证记录:docs/archive/blue-throated-bee-eater-pet/validation.md(门禁表格 + 实例说明)

补充说明

  • 素材落地为内置宠物(npm files 白名单 + README 内置表),另一条分发路径是创意工坊:market/dist/assets/pets/blue-throated-bee-eater/ 与 market/dist/manifest/pets.json(rank-1 条目,预览顺序 idle-first)。
  • docs/archive/blue-throated-bee-eater-pet/gen-pet.py 为确定性素材生成器(Pillow 4x 超采样、Catmull-Rom 样条),保留在归档目录作为出处与复现;不回写进宠物目录,避免安装器把工具拷贝进 $DSH_HOME/pets。

New built-in 9-row sprite2d companion matching the blue-throated-bee-eater skin palette (azure throat, teal plumage, chestnut crown, deep blue-ink outlines). Original flat-illustration artwork generated by docs/archive/blue-throated-bee-eater-pet/gen-pet.py (Pillow splines at 4x supersampling) and kept there as provenance and validation evidence. Manifest v2 declares all nine tracks at the global slow rhythm, all seven ActivityPhase sequences and a bee-eater voice remarks block. Registry test pins the new entry; README pair updates the built-in table and preview tables; Agent Note records the decision and rejected alternatives.
Scratch DSH web run: the registry lists blue-throated-bee-eater, the docked pet animates over the matching skin backdrop (three frames), Settings > Pet card captured, /api/pet/pets dumped; instance and scratch home removed after capture.
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

本 PR 缺少必要的贡献信息。

请更新 PR 描述并保持 PR 模板完整:

  • 请在 测试证据与上游同步(Test Evidence & Upstream Sync) 中勾选上游同步项,并附上同步 dev 最新代码后重新测试通过的证据。

贡献者 PR 必须附带本地测试证据:自测测试记录 + 同步上游最新 dev 分支后重新测试通过的证据;视觉修复需附完成截图(完成态或修复前后对比),且必须使用支持图像输入的多模态 AI 模型完成。

@github-actions github-actions Bot added documentation Improvements or additions to documentation area/market Workshop store, dsh-market.com, and try-on shell area/pet Desktop and web pet plugin area/i18n Internationalization, translations, and locale parity labels Sep 7, 2026
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

本 PR 已按类别自动路由:

  • plugins(插件功能(任务看板 / Git 图谱 / 右侧面板 / 远程 Web UI / SSH / 宠物 / 设置 / 聚合包))

已将 zhu1090093659 设为负责人。已请求 zhu1090093659 审查。路由规则见 .github/pr-review-routes.json。

… vector pipeline

Rework the pet art from flat PIL polygons to a pycairo two-pass renderer (color pass with linear/radial gradients plus an A8 alpha pass, 8x supersampling): fuller chestnut crown, thinner eye-mask band, white sclera with blue-gradient iris and glints, layered wings with separated primary fingers and light edges (far wing darker, semi-transparent in flight), twig perch with leaves and a soft contact shadow, subtle feather strokes. Multimodal review rounds fixed eye proportions, crown/mask balance, the flight silhouette, the frontal hover view and the beak shape. Docs, market dist, GUI evidence and the agent note are updated; the PR stays closed pending the contributor's visual acceptance.
…tails

Landing semantics on the done phase: the jumping row plays cruise -> descend -> flare -> touchdown (no crouch absorb, no perch settle; the contract row name stays jumping per the shared hatch-pet contract). Blink policy after review: kept on the waiting track only, removed from idle and the front hover. Treats are labelled 小蜜蜂 through the per-pet voice.json panel override (feed button label stays the plugin default); bee remarks reworded accordingly. Twelve pose references (ref-01..ref-12) are archived with the AI-route composer; the pixel-art pipeline is archived as gen-pet-pixel.py with its evidence. Provenance, validation record and the agent note are updated; market dist regenerated.
@yezi4271 yezi4271 reopened this Sep 7, 2026
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

本 PR 缺少必要的贡献信息。

请更新 PR 描述并保持 PR 模板完整:

  • 请在 测试证据与上游同步(Test Evidence & Upstream Sync) 中勾选上游同步项,并附上同步 dev 最新代码后重新测试通过的证据。

贡献者 PR 必须附带本地测试证据:自测测试记录 + 同步上游最新 dev 分支后重新测试通过的证据;视觉修复需附完成截图(完成态或修复前后对比),且必须使用支持图像输入的多模态 AI 模型完成。

@github-actions github-actions Bot added the area/web Browser and Electron graphical interfaces label Sep 7, 2026
The guard-agent-notes workflow restricts .agents/notes to the repository owner and collaborators; the decision record facts live in docs/archive/blue-throated-bee-eater-pet/validation.md and the commit messages instead.
Keep only the shipped-route evidence: contact/zoom sheets and the compare strip are regenerated from the final composer; removal of the flat/gradient/pixel attempt galleries (strip-runright, strip-left, zoom-*, pixel-*), the redundant gen-pet-ai.py snapshot and tangential research images.

@zhu1090093659 zhu1090093659 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

结论:通过,可以合入。我在本地独立复核了一遍:

  • node scripts/dsh-pet validate packages/dsh-pet/assets/blue-throated-bee-eater:valid(renderer sprite2d),零诊断
  • dsh-pet 全量测试 471/471 通过,含新增注册表断言(atlasRows 9 / columns 8 / rows [6,8,8,4,5,8,6,6,6])
  • node scripts/market-build --check:dist up to date(483 files)
  • node scripts/verify-docs.mjs dsh-pet:README 三件套配对通过;新增文件无 emoji
  • 素材审查:终版图集为平滑矢量插画风,idle 帧与预览 GIF 质量良好;dock 实拍截图即为最终素材,dock 尺寸下细节有损失但配色辨识度足够

一条非阻塞的小提示:pet.module.css 里气泡注释改成了「皮肤底色玻璃」,而它上方的 background 仍是固定的 rgba(3, 105, 161, 0.95),注释与实现不一致;不影响本次合入,后续顺手对齐即可。

@zhu1090093659
zhu1090093659 merged commit 5a3a29c into zhu1090093659:dev Sep 7, 2026
8 checks passed
stushansusu added a commit to stushansusu/dsh-web-ui that referenced this pull request Sep 7, 2026
… regenerated artifacts

- market-build after rebasing onto latest dev (incl. zhu1090093659#1402 blue-throated
  bee-eater): 7 pets, dist regenerated (maid-atelier skin assets, manifests,
  styles).
- dsh-web-all: rebuild client bundle from rebased src.
- README.i18n.yaml: re-record pairing after the three-skin README rows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/i18n Internationalization, translations, and locale parity area/market Workshop store, dsh-market.com, and try-on shell area/pet Desktop and web pet plugin area/web Browser and Electron graphical interfaces documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants